package com.ymatou.iapi.usersafe.testcase;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.apache.http.client.ClientProtocolException;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.login.service.LoginAuthCall;
import com.ymatou.iapi.userregister.parameter.UserRegisterInfoRequestDtoBean;
import com.ymatou.iapi.userregister.service.UserRegisterInfoRequestDtoCall;
import com.ymatou.iapi.usersafe.parameter.GatherTriggerTypeEnum;
import com.ymatou.iapi.usersafe.parameter.LoginTypeEnum;
import com.ymatou.iapi.usersafe.parameter.VerifyDataGatherBean;
import com.ymatou.iapi.usersafe.service.VerifyDataGatherCall;
import com.ymatou.iapi.userservice.parameter.enums.AppSourceEnum;
import com.ymatou.iapi.userservice.parameter.enums.TerminalSourceEnum;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.JUserCallService;
import com.ymttest.database.sqlwapper.UserSafeWapper;
import com.ymttest.utils.TestDataManager;
import com.ymttest.utils.YMTDateUtil;

/**
 * FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_VerifyDataGather {
	private static VerifyDataGatherBean VerifyDataGatherBean;
	private static VerifyDataGatherCall VerifyDataGatherCall;
	UserSafeWapper usw;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("统一风控认证接口");
	}

	@Before
	public void caseUp() {
		VerifyDataGatherBean = new VerifyDataGatherBean();
		VerifyDataGatherCall = new VerifyDataGatherCall();
		usw = new UserSafeWapper();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(VerifyDataGatherCall.getOpurl());
	}

	@After
	public void caseDown() throws ClientProtocolException, InterruptedException, IOException {
		Logger.end();
		initConfig(1);
	}

	public void initConfig(int status) throws InterruptedException, ClientProtocolException, IOException {
		Logger.comment("初始化配置status:" + status);
		UserSafeWapper userSafeWapper = new UserSafeWapper();
		// ip注册风控
		userSafeWapper.updateRiskStrategyStatus(status, "IP");
		// 设备号注册风控
		userSafeWapper.updateRiskStrategyStatus(status, "device");
		// ip设备号注册风控
		userSafeWapper.updateRiskStrategyStatus(status, "IP_device");
		// 默认风控开关 dimension_strategy:checkOtherUserTypeLoginAuth=true
		userSafeWapper.updateRiskStrategyStatus(status, "DefaultSafeVerifyStrategy");
		// 买家设备号黑名单 dimension_strategy:deviceIdAllowNull=true
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerDeviceIdBlacklistVerifyStrategy");
		// 买家ip区域认证(买家是否在此区域认证过)
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerIpAreaVerifyStrategy");
		// 买家ip黑名单列表(该ip是否在黑名单中) dimension_strategy:
		// loginSuccessLimit=5
		// loginSuccessLimitMinutes=2
		// loginFailLimit=3
		// loginFailLimitMinutes=1
		// lockExpiredMinutes=10
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerIpBlacklistVerifyStrategy");
		// 买家登入次数黑名单 dimension_strategy:
		// rangMinutes=1
		// countLimit=5
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerLoginCountVerifyStrategy");
		// 买家登入密码错误次数 dimension_strategy:
		// rangMinutes=1
		// countLimit=5
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerLoginPasswordFailTimesVerifyStrategy");
		// 买家常用设备号认证 dimension_strategy:deviceIdAllowNull=true
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerOftenDeviceIdVerifyStrategy");
		// 买家token认证
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerTokenVerifyStrategy");
		// 买手设备号黑名单 dimension_strategy:deviceIdAllowNull=true
		userSafeWapper.updateRiskStrategyStatus(status, "SellerDeviceIdBlacklistVerifyStrategy");
		// 买手ip区域认证
		userSafeWapper.updateRiskStrategyStatus(status, "SellerIpAreaVerifyStrategy");
		// 买手ip黑名单 dimension_strategy:
		// loginSuccessLimit=5
		// loginSuccessLimitMinutes=2
		// loginFailLimit=3
		// loginFailLimitMinutes=1
		// lockExpiredMinutes=10
		userSafeWapper.updateRiskStrategyStatus(status, "SellerIpBlacklistVerifyStrategy");
		// 买手登入次数 dimension_strategy:
		// rangMinutes=1
		// countLimit=5
		userSafeWapper.updateRiskStrategyStatus(status, "SellerLoginCountVerifyStrategy");
		// 买手登入密码错误次数 dimension_strategy:
		// rangMinutes=1
		// countLimit=5
		userSafeWapper.updateRiskStrategyStatus(status, "SellerLoginPasswordFailTimesVerifyStrategy");
		// 买手常用设备号验证 dimension_strategy:deviceIdAllowNull=true
		userSafeWapper.updateRiskStrategyStatus(status, "SellerOftenDeviceIdVerifyStrategy");
		// 买手token验证
		userSafeWapper.updateRiskStrategyStatus(status, "SellerTokenVerifyStrategy");
		// 买手登入id黑名单
		userSafeWapper.updateRiskStrategyStatus(status, "SellerLoginIdBlackListVerifyStrategy");
		// 买家登入id黑名单
		userSafeWapper.updateRiskStrategyStatus(status, "BuyerLoginIdBlackListVerifyStrategy");

		// BuyerAppSourceLoginVerifyStrategy 120：买家登录来源时间限制

		userSafeWapper.updateRiskStrategyStatus(status, "BuyerAppSourceLoginVerifyStrategy");
	}

	private void verifyDB(VerifyDataGatherBean vdgb) throws InterruptedException {
		Thread.sleep(2000);
		int userid = vdgb.getUserId();
		String authsuccess = "0";
		if (vdgb.getAuthSuccess()) {
			authsuccess = "200";
		} else {
			Logger.comment("AuthSuccess:false");
			Logger.verifyEquals(0, usw.seleteLoginRecord(userid).size(), "无记录LoginRecord");

			if (vdgb.getLoginIp() != null && vdgb.getLoginIp().length() > 1) {
				List<Map<String, Object>> ipl = usw.getIPAuthByUserIdAndAreas(userid, null, null, null);
				Logger.verifyEquals(true, ipl.size() >= 1, "收集数据IPAuth");
				Logger.verifyEquals(0, ipl.get(0).get("AuthStatus"), "收集数据IPAuth");
			}
			if (vdgb.getDeviceId() != null && vdgb.getDeviceId().length() > 1) {
				List<Map<String, Object>> dl = usw.getDeviceAuthByUserIdAndDeviceId(userid, null);
				Logger.verifyEquals(true, dl.size() >= 1, "收集数据DeviceAuth");
				Logger.verifyEquals(0, dl.get(0).get("AuthStatus"), "收集数据IPAuth");
			}
			if (vdgb.getLoginId() != null) {
				Logger.verifyEquals(1, usw.selectLoginIpUserCounter(vdgb.getLoginId()).size(), "收集数据录LoginRecord");
			}
			return;
		}
		// 验证UserIPAuth
		if (vdgb.getLoginIp() != null && vdgb.getLoginIp().length() > 0) {
			List<Map<String, Object>> list = usw.getIPAuthByUserIdAndAreas(userid, null, null, null);
			// 验证最后一条记录 认证通过
			Map ipm = list.get(0);
			Logger.verifyEquals(vdgb.getLoginIp(), ipm.get("Ip").toString(), "验证Ip");
			Logger.verifyEquals(vdgb.getUserId(), ipm.get("UserId"), "验证UserId");
			Logger.verifyEquals(authsuccess, ipm.get("AuthStatus").toString(), "验证AuthStatus");
		}
		// 验证user_login_record 最近60天是可以通过风控的
		Map lrm = usw.seleteLoginRecord(userid).get(0);
		Logger.debug(lrm);
		Logger.verifyEquals(vdgb.getAppSource().toLowerCase(), lrm.get("AppSource").toString().toLowerCase(), "验证AppSource");
		Logger.verifyEquals(YMTDateUtil.getSysTime("yyyy-MM-dd"), lrm.get("LastSuccessLoginTime").toString().substring(0, 10), "验证LastSuccessLoginTime");

		if (vdgb.getDeviceId() != null && vdgb.getDeviceId().length() > 0) {
			// 验证UserDeviceAuth
			Map dam = usw.getDeviceAuthByUserIdAndDeviceId(userid, vdgb.getDeviceId()).get(0);
			Logger.debug(dam);
			Logger.verifyEquals(vdgb.getDeviceId(), dam.get("DeviceId").toString(), "验证DeviceId");
			Logger.verifyEquals(authsuccess, dam.get("AuthStatus").toString(), "验证AuthStatus");
		}
		// 验证loginipusercounter {LoginIp=199.8.73.148, IsSuccess=true,
		// LoginId=autotest_ppPcbv8, LastUpdateTime=2017-07-13 14:49:15.0,
		// UserType=2}
		if (vdgb.getLoginId() != null && vdgb.getLoginIp() != null && vdgb.getLoginIp().length() > 0) {
			Map liucm = usw.selectLoginIpUserCounter(vdgb.getLoginId()).get(0);
			Logger.debug(liucm);
			Logger.verifyEquals(vdgb.getLoginIp(), liucm.get("LoginIp").toString(), "验证LoginIp");
			Logger.verifyEquals(vdgb.getAuthSuccess(), liucm.get("IsSuccess"), "验证IsSuccess");
			String apps = vdgb.getAppSource().toLowerCase();
			List<String> lseller = new ArrayList<String>();
			lseller.add("sellerpc");
			lseller.add("sellerapp");
			lseller.add("slogin");
			lseller.add("seller");
			lseller.add("seller.app");
			if (lseller.contains(apps)) {
				Logger.verifyEquals(1, liucm.get("UserType"), "验证UserType");
			} else {
				Logger.verifyEquals(2, liucm.get("UserType"), "验证UserType");
			}

		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_001() {
		Logger.start(true, "统一风控认证接口更新ip认证状态true成功");
		try {
			initConfig(2);
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteIPAreaData(userid, null, null, null);

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(true);
			VerifyDataGatherBean.setAppSource("slogin");
			VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");

			verifyDB(VerifyDataGatherBean);

			// 验证登入成功
			LoginAuthCall loginc = new JUserCallService().login(urb.getLoginId(), urb.getPas(), VerifyDataGatherBean.getAppSource(), VerifyDataGatherBean.getLoginIp(),
					VerifyDataGatherBean.getDeviceId());
			Logger.verifyEquals(true, loginc.getSuccess(), "验证Success");

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_002() {
		Logger.start(true, "统一风控认证接口更新设备认证状态true成功");
		try {
			initConfig(2);
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteDeviceData(userid, urb.getDeviceId());

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(true);
			VerifyDataGatherBean.setAppSource(AppSourceEnum.Wap.name());
			VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");

			verifyDB(VerifyDataGatherBean);

			// 验证登入成功
			LoginAuthCall loginc = new JUserCallService().login(urb.getLoginId(), urb.getPas(), VerifyDataGatherBean.getAppSource(), VerifyDataGatherBean.getLoginIp(),
					VerifyDataGatherBean.getDeviceId());
			Logger.verifyEquals(true, loginc.getSuccess(), "验证Success");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_003() {
		Logger.start(true, "统一风控认证接口更新user_login_record认证状态true成功");
		try {
			initConfig(2);
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteLoginRecord(userid);

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(true);
			VerifyDataGatherBean.setAppSource(AppSourceEnum.App.name());
			VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");

			verifyDB(VerifyDataGatherBean);

			// 验证登入成功
			LoginAuthCall loginc = new JUserCallService().login(urb.getLoginId(), urb.getPas(), VerifyDataGatherBean.getAppSource(), VerifyDataGatherBean.getLoginIp(),
					VerifyDataGatherBean.getDeviceId());
			Logger.verifyEquals(true, loginc.getSuccess(), "验证Success");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_004() {
		Logger.start(true, "不输入iP,成功");
		try {
			initConfig(2);
			// 这时候不做任何事
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteLoginRecord(userid);
			usw.deleteIPAreaData(userid, null, null, null);
			usw.deleteDeviceData(userid, urb.getDeviceId());
			usw.deleteLoginIpUserCounter(urb.getLoginId());

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			// VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(true);
			VerifyDataGatherBean.setAppSource(AppSourceEnum.App.name());
			VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");
			verifyDB(VerifyDataGatherBean);
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_005() {
		Logger.start(true, "输入uid,成功");
		try {
			initConfig(2);
			// 这时候不做任何事
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteLoginRecord(userid);
			usw.deleteIPAreaData(userid, null, null, null);
			usw.deleteDeviceData(userid, urb.getDeviceId());
			usw.deleteLoginIpUserCounter(urb.getLoginId());

			Thread.sleep(1000);
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");
			verifyDB(VerifyDataGatherBean);
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_006() {
		Logger.start(true, "不输入DeviceId,成功");
		try {
			initConfig(2);
			// 这时候不做任何事
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteLoginRecord(userid);
			usw.deleteIPAreaData(userid, null, null, null);
			usw.deleteDeviceData(userid, urb.getDeviceId());
			usw.deleteLoginIpUserCounter(urb.getLoginId());

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(true);
			VerifyDataGatherBean.setAppSource(AppSourceEnum.App.name());
			// VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");
			verifyDB(VerifyDataGatherBean);
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_VerifyDataGather_007() {
		Logger.start(true, "AuthSuccess为false,成功,收集数据");
		try {
			initConfig(2);
			// 这时候不做任何事
			UserRegisterInfoRequestDtoBean urb = JUserCallService.initUserRegisterInfoRequestDtoBean();
			UserRegisterInfoRequestDtoCall uc = JUserCallService.UserRegisterInfoRequestDtoCall(urb);
			Integer userid = uc.getUserid();
			UserSafeWapper usw = new UserSafeWapper();
			usw.deleteLoginRecord(userid);
			usw.deleteIPAreaData(userid, null, null, null);
			usw.deleteDeviceData(userid, urb.getDeviceId());
			usw.deleteLoginIpUserCounter(urb.getLoginId());

			Thread.sleep(1000);
			VerifyDataGatherBean.setLoginId(urb.getLoginId());
			VerifyDataGatherBean.setUserId(userid);
			VerifyDataGatherBean.setLoginIp(TestDataManager.getRandomIp());
			VerifyDataGatherBean.setAuthSuccess(false);
			VerifyDataGatherBean.setAppSource(AppSourceEnum.App.name());
			VerifyDataGatherBean.setDeviceId(TestDataManager.getRandomUUID().toString());
			VerifyDataGatherBean.setGatherTriggerType(GatherTriggerTypeEnum.BeforeLogin);
			VerifyDataGatherBean.setLoginType(LoginTypeEnum.SafeLogin);
			VerifyDataGatherBean.setTerminalSource(TerminalSourceEnum.IOS.name());
			VerifyDataGatherCall.setData(VerifyDataGatherBean);
			VerifyDataGatherCall.callService();
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Success"), "验证Success");
			Logger.verifyEquals("true", VerifyDataGatherCall.getString("Result"), "验证Result");
			Logger.verifyEquals("200", VerifyDataGatherCall.getString("ErrorCode"), "验证ErrorCode");
			verifyDB(VerifyDataGatherBean);
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}